import request from '@/utils/request'
// 获取商品列表
const fetchCates = (params = {}) => (
  request.get('/cateLists', { params })
)
// 新增商品
const addCate = (params = {}) => (
  request.post('/addCate', params)
)
// 修改商品分类详情
const fetchCatesUpdate = (params = {}) => (
  request.get('/cateUpdate', { params })
)
// 修改商品分类
const addCateUpdate = (params = {}) => (
  request.put('/updateCate', params)
)
// 删除商品列表
const delCates = (params = {}) => (
  request.delete('/delCate', { params })
)
export {
  fetchCates,
  addCate,
  fetchCatesUpdate,
  addCateUpdate,
  delCates
}
